Arduino Robotics by John-David Warren Josh Adams Harald Molle

Arduino Robotics by John-David Warren Josh Adams Harald Molle

Author:John-David Warren, Josh Adams, Harald Molle
Language: eng
Format: epub, pdf
Publisher: Apress®
Published: 2011-07-07T16:00:00+00:00


// include the Servo.h Arduino library

#include <Servo.h>

// create instances for each servo using the Servo.h library

// for more information, see: http://arduino.cc/en/Reference/Servo

Servo servo_L;

Servo servo_R;

////////////////////////// Variables used for testing (you can change these)

/////////////////

// use to determine direction of bot and which sensors to use.

int mode_pin = 4; // connect the mode switch to digital pin 4

int antennae_L = 3; // connect left antennae sensor to digital pin 3

int antennae_R = 2; // connect right antennae sensor to digital pin 2



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.